package com.xc.content.utils;

import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;
import org.springframework.stereotype.Component;

/**
 * @Author: hyacinth
 * @CreateTime: 2025-01-09
 * @Version: 1.0
 */
@Component
public class SnowflakeUtil {

    private static final Snowflake snowflake = IdUtil.getSnowflake(1, 1);

    public static String nextId(){
        return String.valueOf(snowflake.nextId());
    }
}
